#include "MapObject.h"
#include <Ogre.h>

MapObject::~MapObject(){}

int MapObject::getCategory(){ return mCategory; }

Ogre::Vector3 MapObject::getPosition(){ return mPosition; }

bool MapObject::isDestroyable(){ return mDestroyable; }

bool MapObject::isTraversable(){ return mTraversable; }

void MapObject::setDamage(int damage){ mEnergy -= damage; }

void MapObject::setDestroyable(bool destroyable){ mDestroyable = destroyable; }

void MapObject::setTraversable(bool traversable){ mTraversable = traversable; }

void MapObject::setCategory(MapObject::category newCategory){ mCategory = newCategory; }

void MapObject::setPosition(Ogre::Vector3 newPosition){ mPosition = newPosition; }

bool MapObject::isDestroyed(){ return (mEnergy <= 0)? true : false; }
